package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.AnswerPossibilityDaoIF;
import de.hhbk.feedbackmodul.entities.AnswerPossibility;
import de.hhbk.feedbackmodul.remoteInterfaces.AnswerPossibilityRemoteIF;
@Stateless
public class AnswerPossibilitySessionBean implements AnswerPossibilityRemoteIF{

	@EJB
	private AnswerPossibilityDaoIF dao;
	
	@Override
	public List<AnswerPossibility> getAllAnswerPossibilities() throws Exception {
		return dao.getAllAnswerPossibilities();
	}

	@Override
	public void createAnswerPossibility(AnswerPossibility answerPossibility)
			throws Exception {
		dao.createAnswerPossibility(answerPossibility);
		
	}

	@Override
	public void updateAnswerPossibility(AnswerPossibility answerPossibility)
			throws Exception {
		dao.updateAnswerPossibility(answerPossibility);
		
	}

	@Override
	public void deleteAnswerPossibility(AnswerPossibility answerPossibility)
			throws Exception {
		dao.deleteAnswerPossibility(answerPossibility);
		
	}

}
